/* Team Directories
 *
 * You are free to do whatever you want with this code. Frankly we don't give a damn.
 * 
 *  
 * Copyright GNU General Public License v3
 */

package StudyBuddy;

/**
 * To make the current logged in users username avaliable to various different
 * classes like Statistics for keeping track of high scores.
 * 
 * @version     1.10    26 Feb 2008
 * @author      Rajpreet Bajwa
 */
public class LoginInfo {
    
    /** to store the current logged in user's username */
    static String usernameInfo = null;
    
    /**
     * To set the username for the current user that is logged in.
     * @param username
     */
    public void setUsernameInfo(String username)
    {
        
        /** 
         * var usernameInfo of type string is given the value of var usrname
         * of type string.
         */
        usernameInfo = username;        
    }   //setUsrnameInfor
    
    /**
     * This function will return whatever value is stored in the var usernameInfo
     * of type string.
     * @return
     */
    public String getUsernameInfo()
    {
        return usernameInfo;    //returns the value stored in var usernameInfo    
    }   //getUsrnameInfo     
    
}   //LoginInfo
